package com.gitee.wsl.markdown.plugin.gfm.block.alert


/**
 *
 * @author t.marx
 */
class GFMAlerts {

}

enum class AlertType {
    NOTE, TIP, IMPORTANT, WARNING, CAUTION;

    companion object {
        fun fromString(s: String?): AlertType {
            return when (s) {
                "TIP" -> TIP
                "IMPORTANT" -> IMPORTANT
                "WARNING" -> WARNING
                "CAUTION" -> CAUTION
                else -> NOTE
            }
        }
    }
}